package com.analysis.mapper;

import com.analysis.entity.BrandExposureSnapshot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandExposureSnapshotMapper {
    int insert(BrandExposureSnapshot snapshot);
    int deleteById(@Param("id") Long id);
    int update(BrandExposureSnapshot snapshot);
    BrandExposureSnapshot selectById(@Param("id") Long id);
    List<BrandExposureSnapshot> selectByProjectId(@Param("projectId") Long projectId);
    List<BrandExposureSnapshot> selectByPage(@Param("projectId") Long projectId, @Param("offset") int offset, @Param("limit") int limit);
    int countByProjectId(@Param("projectId") Long projectId);
}


